import request from '@/utils/request'

// 获取企业列表信息接口
export const enterpriseList = params => {
  return request({
    url: '/enterprise/list',
    params
  })
}
// 企业添加接口
export const enterpriseAdd = (data) => {
  return request({
    url: '/enterprise/add',
    method: 'post',
    data
  })
}
// 企业编辑接口
export const enterpriseEdit = (data) => {
  return request({
    url: `/enterprise/edit/${data.id}`,
    method: 'post',
    data
  })
}
// 企业删除接口
export const enterpriseRemove = (data) => {
  return request({
    url: '/enterprise/remove',
    method: 'post',
    data
  })
}
// 修改企业状态。启用或者禁用账号
export const enterpriseStatus = (data) => {
  return request({
    url: '/enterprise/status',
    method: 'post',
    data
  })
}

